﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace A79字符串格式化
{
    class Program
    {
        static void Main(string[] args)
        {
            string date = "2020-7-1";
            string[] arr = date.Split('-');//分割出年月日
            string cnDate = string.Format("{0}年{1:00}月{2:00}日", arr[0], int.Parse(arr[1]), int.Parse(arr[2]));
            Console.WriteLine(cnDate);
        }
    }
}
